package com.cms.core.foundation;

import java.io.Serializable;

/**
 * @author laolang
 * @version 1.0.0
 * @ClassName BaseMapper
 */
public interface BaseMapper<ENTITY extends BaseEntity<PK>,PK extends Serializable> {


    /**
     * 添加
     */
    void save(ENTITY entity);
    /**
     * 根据Id查询
     * @param id
     * @return
     */
    ENTITY selectById(PK id);
}
